package com.bitejiuyeke.job_publish.model;

import com.bitejiuyeke.job_publish.common.PageRequest;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonIgnore;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

import java.util.Date;
@Data
@ToString
@NoArgsConstructor
public class Job extends PageRequest {
    private Long id;

    private Long userId;

    private String title;

    private Integer rewardUpper;

    private Integer rewardLower;

    private Integer timeLimit;

    private Integer favoriteCount;

    private Integer receiveCount;

    private Integer visitCount;

    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date expires;

    private Byte state;

    @JsonIgnore
    private Byte deleteState;

    private Date createTime;

    private Date updateTime;

    private String description;

    private User publisher;

}